package scoresort;

import java.util.Comparator;

public class StuScoreComparator implements Comparator<Student>, java.io.Serializable {
    public int compare(Student o1, Student o2) {
        double stu1 = o1.score;
        double stu2 = o2.score;

        if (stu1 > stu2)
            return 1;
        else if (stu1 == stu2)
            return 0;
        else
            return -1;


    }


}
